home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection Student Program / ADC Tools Sampler CD Disk 3 1999.iso / Metrowerks CodeWarrior / Java Support / Java_Source / IFC_112 / netscape / application / HTMLParsingException.java < prev    next >
Encoding:
Text File  |  1999-05-28  |  998 b   |  35 lines  |  [TEXT/CWIE]

  1. // HTMLParsingException.java
  2. // By Ned Etcode
  3. // Copyright 1995, 1996, 1997 Netscape Communications Corp.  All rights reserved.
  4.  
  5. package netscape.application;
  6.  
  7. /** Exception signaling that an HTML parsing exception has occurred. This
  8.   * exception also provides a means for an HTML parser client to determine
  9.   * which line generated the exception.
  10.   */
  11. public class HTMLParsingException extends Exception {
  12.     int lineNumber = -1;
  13.  
  14.     /** Constructs an empty HTMLParsingException.
  15.       */
  16.     private HTMLParsingException() {
  17.         super();
  18.     }
  19.  
  20.     /** Constructs an HTMLParsingException with the descriptive message
  21.       * <b>string</b>, and the line number on which the error occurred.
  22.       */
  23.     public HTMLParsingException(String string, int lineNumber) {
  24.         super(string);
  25.         this.lineNumber = lineNumber;
  26.     }
  27.  
  28.     /** Returns the line number at which the HTMLParsingException
  29.       * occurred.
  30.       */
  31.     public int lineNumber() {
  32.         return lineNumber;
  33.     }
  34. }
  35.